package org.ph.share._06_ThreadPool_gettingStarted;

import java.util.concurrent.*;

public class _01_ThreadPool {
    public static void main(String[] args) {
        //创建一个线程池
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2,5,30, TimeUnit.SECONDS, new LinkedBlockingQueue<>());

        Executors.newSingleThreadExecutor();

        Executors.newCachedThreadPool();

        ExecutorService executorService = Executors.newFixedThreadPool(3);
        //executorService.

    }
}
